<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <a href="/login">Login</a><br/>
    <a th:href="@{/login}">Login</a></div>
<br/>
<a th:href="@{/login1}" th:if="${userName == 'bdqn'}">Login1</a></div><br/>
<a th:href="@{/login2}" th:unless="${userName != 'bdqn'}">Login2</a>
</div>
</body>
</html>